package com.example.mscloud.service.impl;

import com.example.mscloud.common.entities.Payment;
import com.example.mscloud.mapper.PaymentMapper;
import com.example.mscloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentServiceImpl implements PaymentService
{
    @Resource
    private PaymentMapper payMentMapper;

    @Override
    public int create(Payment payMent){
        return payMentMapper.create(payMent);
    }

    @Override
    public Payment getById(Long id){
        return payMentMapper.getByPaymentId(id);
    }


}
